# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-specio
_pkgreal=Specio
pkgver=0.48
pkgrel=1
pkgdesc="Type constraints and coercions for Perl"
url="https://metacpan.org/release/Specio"
arch="noarch"
license="Artistic-2.0"
depends="
	perl perl-sub-quote perl-devel-stacktrace perl-role-tiny perl-mro-compat perl-try-tiny
	perl-test-fatal perl-eval-closure perl-module-runtime
	"
checkdepends="perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Specio-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
76fd2aa398008238d55714700581782c95b635a4d4198b1c51daecfec770b61b9898351cbc2bf999f4d837691de657c51a94581c0f0b21b67b605770d507729a  Specio-0.48.tar.gz
"
